/**
 *
 */
package com.honeybees.framework.datatables.ajax;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * <dl>
 * <dt><b> 排序的列 </b></dt>
 * <p>
 * <dd>功能描述</dd>
 * </dl>
 * <p>
 * Copyright (C) All rights reserved.
 * </p>
 *
 * @author 李远明
 * @since 2017-03-31 11:14:58
 */
public class Order implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -5764191906338661015L;
    /**
     * 需要排序的列号，从0开始计数
     */
    private int column;
    /**
     * 排序的方向（desc 或 asc）
     */
    private String dir;

    public Order() {
    }

    public Order(int column, String dir) {
        this.column = column;
        this.dir = dir;
    }

    public int getColumn() {
        return column;
    }

    public void setColumn(int column) {
        this.column = column;
    }

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

}
